using UnityEngine;
using System.Collections;

public class EventExit : MonoBehaviour {

	GUIButton button;
	void Start ()
	{
		button = gameObject.GetComponent<GUIButton>();
		button.OnClickCallback += OnClick;
	}
	void OnClick(Vector3 pos){
		Application.Quit();	
	}
}
